/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.product.entity.catalog;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商品类别Entity
 * @author Egan
 * @version 2016-12-12
 */
public class GenCatalog extends DataEntity<GenCatalog> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// name
	private String pid;		// pid
	private String order1;		// order1
	private String type;		// type
	private String code;		// code
	private String showinnav;		// showinnav
	private List<GenCatalog> children;
	
	public GenCatalog() {
		super();
	}

	public GenCatalog(String id){
		super(id);
	}

	@Length(min=1, max=64, message="name长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="pid长度必须介于 0 和 64 之间")
	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}
	
	@Length(min=0, max=64, message="order1长度必须介于 0 和 64 之间")
	public String getOrder1() {
		return order1;
	}

	public void setOrder1(String order1) {
		this.order1 = order1;
	}
	
	@Length(min=0, max=64, message="type长度必须介于 0 和 15 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="code长度必须介于 0 和 64 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=2, message="showinnav长度必须介于 0 和 2 之间")
	public String getShowinnav() {
		return showinnav;
	}

	public void setShowinnav(String showinnav) {
		this.showinnav = showinnav;
	}

	public List<GenCatalog> getChildren() {
		return children;
	}

	public void setChildren(List<GenCatalog> children) {
		this.children = children;
	}
	
}